#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>


//int main()
//{
//    int a = 10000;
//    FILE* pf = fopen("test.txt", "wb");
//    fwrite(&a, 4, 1, pf);
//    fclose(pf);
//    pf = NULL;
//    return 0;
//}

int main()
{
	FILE* pf=fopen("test.txt", "r");
	if (pf == NULL)
	{
		perror("fopen");
		return 1;  
	}
	fclose(pf);
	pf = NULL;
	return 0;
}